If your sleep cycle goes out of whack without melatonin, that sounds like a dysfunctional pineal gland. What are you doing in terms of diet? Consider working with a doctor who practices functional medicine that will look for underlying causes like chemical imbalances/deficiencies (like nutrients and minerals)