You’ll want to make sure that you are getting to bed early enough to allow your body the rest it needs. Track your sleep first to see how many hours you need in order to feel rested. Then make sure you are in bed in time to get those hours before waking up to exercise.
Also make sure that you are doing exercise that you enjoy. Life is too short to not have fun!