I've been watching streamers do speedruns if I can't sleep which helps, but exercising before bed doesn't help because it gets my heartbeat going too fast, and that makes it harder to sleep.
I've been using flux too, I read that the absence of blue light makes your body produce more melatonin and in turn make the sleeps happen, but after awhile it just became impossible to fall asleep.