Heart rate increase after you go to bed is classic sign. I suggest a ELISA test for Ascaris. It is a blood test. The test is kind of broad spectrum, so it will go positive for Ascarids as well.
Tapeworms seldom go to brain and heart. Round worms can, but virtually none cause severe heart damage.
I suspect worms dumping toxins are causing increase in uric acid, and pulse is body response to toxins.
Any parasite can do this, but the mention of 2:40 AM is just so familiar I would think round, not tape worm.
Tape worms are typically easy to get rid of, and seldom damage the heart.