I was temporally prescribed metoprolol for some palpitations but also discovered it does helps with anxiety symptoms, so I still use it sometimes. At first it gave me nightmares but they stopped. I wanted to try propranolol (probably better) but I read the side effects are worse than those of metoprolol so I didn’t.
Edit: I read the side effects are basically the same, including ED.