The ghosts can be pretty brutal ahaha
The trick if you're stun locked is to hold X and a directional input and you will dash through them before they can deal more hearts - ghosts can keep smacking you around when you're in helpless state but they can only take hearts when you're in control, so you can always dash before they hit you again.