Curtain the bedroom, it is better to blackout curtains so that it is dark during sleep (melatonin is produced in the dark), but in general, the lack of melatonin, as already mentioned, can be replenished with melatonin-ss, in fact, this is pure melatonin.
Melatonin will be produced anyway, it just happens much worse in the light. And so yes, I agree with the previous answers - melatonin-ss will help you, it will fill up the missing melatonin.
It's better to sleep at night. Melatonin is really poorly produced in the light. If anything, the lack of melatonin can be replenished with drugs, of which there are many, for example, melatonin-ss.