There is a condition called supra ventricular tachycardia
where heart I'll suddenly beat rapidly and after few hours will come down.
The doctor should see her when this is happening as it is intermittant.
Otherwise she may need a holter monitor
There are medicines for this condition!
All the best