Well firstly, you’ll get used to it. Probably. Give it a few more days, this is pretty common, it takes time to settle into it.
However, having said that be sensible about it, if it continues to be a problem then try not edging too hard last thing, save that for earlier in the day and just do a soft edge last thing at night. Even half an hour before you’re trying to sleep will be better than just before.
So yes, start edging earlier… if we said you’re on no touch for the last half hour before ‘bedtime’ then maybe you’d be forced to spend it sucking cock and getting fucked… just sayin’