I feel bad for ya ... I've had the same problem going on for the past few years.
For a short time I sleep like a normal person and then for months on end, I can't sleep until between four & six in the morning and wake up any time between 7am and 12 noon .
Bar getting some sleeping pills (that don't always work), I can't think of anything that could help unfortunately.