Allays don't naturally regenerate 2 heart per second in Bedrock Edition.
Allays naturally regenerate 2 point heart per second in Java Edtion if damaged, or 1.83 point heart per second in Bedrock Edition.
It's a vanilla parity issue.
How to reproduce:
- Create a allay cage
- Put a allay into it.
- Observe if the allay will die.
Expect results:
Allay will not die.
Observed results:
Allay will die after 200-240 times damage.