I’m talking about the plastic cover on my am4 cpu socket which has the lever and protects the pins. One corner of the cover won’t click into place and there is a crack I did cause the damage and my motherboard might be fried and am worried that the damage could void the warranty or if the damage could stop the cpu from contacting some of the pins in the socket so I looked at eBay for potential replacements.
This is about the same as the damage I have
The socket in that picture could probably be used without problems so long as all the plastic surrounding the holes that the pins go in is intact and the lever goes down and engages the catch to stay. Also make sure nothing has gotten between the cover and the bottom part of the socket, and as well examine the sockets contacts with bright light and a magnifier to make sure nothing's damaged them.
Whether your socket would also function assumes that picture accurately represents the extent of your socket's damage. You mentioned a crack, a picture showing that crack would be needed to know if it might affect operation.
The way the socket works is each pin goes into the hole of the cover that slides back and forth by the lever. When the lever is closed the cover slides and pushes each pin into a V groove that is the socket contact, like a hot dog in a bun. The force of the lever pushes the cover which in turn pushes each pin into solid contact. So long as the cover is intact and it at least fits down in position even though it won't clip on it will work. Once the cpu is installed, the lever locked and a cooler clamped on it's going nowhere.
But each pin needs solid plastic structure surrounding it so the force of the lever is applied to the pin through the cover only and not by the body of the CPU, which is also being moved as the other pins are being pushed..