Cannot Attack while Flying Dragon is equipped

At first everything was fine when I got the skill and started using it but then a few days later suddenly I had got the bug where neither attacks nor using potions (nothing on cd) worked and I could only move around for a while.

I had it a couple more times on that and the next day but the following day suddenly it was happening not rarely but every 2 minutes or so, making the game literally unplayable.

Usually this bug lasts for 10-40 seconds and sometimes there is also an X icon displayed over the potions as if this was somehow an intended state if there was a dedicated asset for it.

I thought this had only started to happen once I had equipped Flying Dragon so I equipped other skills instead (Wave of Light and Flying Kick) and now I never get the bug again.