This happened in college and is continuing to happen now. I can’t sleep early. It’s impacting my memory now while I work.
You might lack sleep hygiene. No blue light 2h before you sleep (install f.lux on your computer and phone). Try waking up the same time everyday (including weekends) and starting your day with at least 20min of physical activity ideally combined with sunlight exposure. Limit coffee to 1 cup per day and no caffeine whatsoever after lunch. I guarantee you your sleep will improve by factor 2-3. If you want to learn why read “Why we sleep” by Matthew Walker.