I have a bad sleep schedule where I wake up at midnight and I can't fix it. I'm wasting away my summer.

I try to go to bed early, I can't, if I'm not extremely tired I lay in bed for hours with my eyes closed and I can't sleep. I try to wake up early and I'm very nauseous all day and so tired (can't have caffeine either)