In my opinion , you use too many words to express a simple notion . Perhaps , you are making a sentence with Chinese thinking
As we did not have good sleep , so we were not energetic ==OR
Given that we did not sleep well , we did not have enough energy