Hmmm. Difficult one. Cats are naturally nocturnal. So being active at night is NORMAL.

First question...is he locked (closed) OUT of your bedroom at night? Could that be what makes him "panic"?

Is he this active during the day?

Is he allowed outside?

Maybe his internal clock needs a bit of resetting. Make him play HARD before the time YOU want to go to sleep. Then feed him so his full belly will make him sleepy (combined with his play time, he should be tired out).

As asked earlier, if he is not neutered, do so. Should help to calm him down some.

Also, a vet might be able to suggest a sedative for bedtime, especially if nothing else works.