Hello first of all try to upload a video with the failure that you order so that I and / or anyone else in this forum can help and comment on a solution, and with respect to the failure is probably the mechanical brake or a piece as a trigger type that after finishing the spinning, the mechanical brake is incrusted and activated, so to speak, and this piece may be somewhat loose, it could also be that an object such as coins, pins, etc. is found inside the tub.

in your washing machine that noise is due to the brake hit to the transmission and the brake part would have to be adjusted, but I would recommend that you take it with a reliable technician.
I also recommend this video if you want to do it yourself
https://www.youtube.com/watch?v=mkWXXw1Nsfg
greetings, I hope it serves you.