The name of the attack doesn't necessarily mean anything.

The mechanic specifically wants your HP to be a prime number. That is how the mechanic works. And 1 isn't a prime number; period. Thus, getting hit when your HP is 1 is working as intended.

If you didn't know that the mechanic wants your HP to be a prime number, that's on you for not paying attention to what the boss literally tells you.