Racing heart that wakes me up

ive been put on propanolol to manage my racing heart that wakes me up at night! But it has come back slightly, i have to try slow it down and shake abit from the anxiety of it what does anyone think causes it?

Anxiety attacks.