Appium server crashing in MacOS with unknown reason

We are using appium to execute our integration tests on macOS.
To execute these we use a macOS device working as a self hosted agent in Azure devops pipeline

When we try to execute the tests sometimes the appium server crashes with an invalid crash stack.

Pasting the stack below.

Need help in understanding what is wrong with this crash. It is not regular but intermittent.