Actually it happens when you try to boot a recovery that is incompatible with your current rom.
It keeps trying to reboot to twrp (or so it seems)
The start screen of twrp turns on and off and keeps repeating this. Until you have to press the power button to force reboot the device