Along with treatment, look for creative ways to adjust to your shifting sleep patterns.
You may need to ask your boss for flexible working hours. If you're a student, consider taking classes online or viewing lectures on video. Ask your school about getting a flexible exam schedule or a lighter course load.
Keep in mind that Non-24 is a disability under the Americans with Disabilities Act. Schools and employers must make reasonable accommodations for you, such as part-time or altered schedules.