Well, avoid caffeine and sugars at night times.
Sure as you need to stay awake to self study till 1 am, but avoiding any energy bars, drinks and sweets in the evening is the way to go. The last cup or sweet at the latest 7 pm.
If you need a hot beverage in the evenings tee should do the job as it also helps to calm down.
Avoid cellphone use as best as most as possible at night as the light has been shown to keep people awake. Shift your study time so you study from say 10 pm to 11pm. Then there after avoid any activities like reading. Try to pray, or meditate at this time. Also at best a quick 10 min workout can be done to shift your body into being tired.
I usually workout at night ( don’t see any harm in it as I am tired when I go to bed and fall asleep very quickly)
Also at best avoid drinking when in your study period it will avoid the time to get up at in your sleep time to go to the bathroom.
Also avoid studying on your bed at all cost. So your brain can properly switch to sleep mode rather than study mode.
Hope this helps bro! Good luck and stay strong and awesome !