How can I not break my sprocket next time My sprocket was doing loud noises and when I looked at it, it looks like this

https://imgur.com/gallery/kcISjFd

I bought a new sprocket but I want to know, what can I do to avoid these types of problems again?

Video of issue when installed on bike: https://imgur.com/a/ZCmyOmV
It was set up without a spindle adapter. There can't be any wiggle between the sprocket and the spindle, or else something like this will happen.