My cat licks me, then bites me aggressively! All while purring

So i took over this 9 month cat because previous owners developed allergy. He settled in very nicely, but when nightime came i was awoken by a large kitty charging me, running up to my arm, lick lick bite while AGGRESSIVELY purring. It was so intense, and hurt a bit, so i pushed him away. Nothing stopped him. Wtf is going on, i had to tire him out until he stopped biting. There were 3 night attacks!

Super calm cat otherwise!

Wow, that sounds like a wild nighttime experience! It must be confusing to have such a sweet cat turn into a bitey monster at night.