One of mine has a really difficult time falling asleep; we started melatonin gummies at age 11, and it makes a WORLD of difference.

Before, she never really got to "sleepy" - she just got more and more spun up and squirrelly. Different situation than yours, since she was also clearly tired, irritable, hard to wake, etc., but we've found it to be really helpful in letting her mind slow down enough for her to fall asleep.