This is a bug that exists ever since 1.13, from what I could see. The riptide animation makes the player character spin in the Z Axis all the time. This makes sense during the riptide animation which makes the player character be on a horizontal position instead of vertical like when walking, etc, but does not account for when the player is already in that position, making the player character on a vertical position again, looking upside down and spinning in the Z axis in that position, which in turn breaks the riptide animation. This happens if the player is swim sprinting or elytra flying during a rain, when the player can use riptide.
A suggested fix is disable the tilting that would otherwise put the player character in a horizontal position, if it is sprint swimming or elytra flying. Or, check if the player character is already in a horizontal position to then disable that tilting.
Related issues
Attachments
Comments


We do not have enough information to find the cause of this issue.
Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows
+Alt
+R
to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift
+Command
+5
to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.
This issue is being temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I just attached recordings of the effect in question. First is a riptide without sprint swimming and another is a riptide while sprint swimming

Does this issue still occur in 1.19.3? If yes, please update the issue.

Thank you for your report!
We're actually already tracking this issue in MC-131492, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 🛠 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 💬 Mojira Discord