Pigs constantly run in circles while simultaneously walking on azalea. The spinning stops briefly when the pig changes the direction its facing then starts to go in circles again when it resumes walking. This will keep happening until the pig is on longer on the azalea. After leaving the azalea, the normal behaviour will resume.
This can be easily reproduced by spawning a pig on an azalea block
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-129373, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki