Idk for sure, this is just a guess, but maybe you realize how important the sleep is and that you need to “do it now!”. Because of this, you are putting pressure on yourself. Due to the pressure, you are not able to relax which makes it hard to fall asleep. If true, it’d be psychological and the solution would be finding ways to relax before sleep.