Thank you for playing!
You're essentially repeatedly stunning the boss so it can't do anything. This is actually intended, but not quite in this way. When you stun it, it stops moving for a few seconds (indicated by the intendity of the blue color), and you can shoot it's heart to actually deal damage, at least if it's not protected by an arm in this case, so you need to strategize it a bit.