It's indead an earth spring that supplies that makes ground to the metal cover plate on top of the drive unit.
My view of your situation : For some reason the spring got out of it's place, maybe due to shocks or transportation of the unit. This got stuck in your drive unit and blocking the CD from ejecting, resulting in the 9101-Mechanical Error-message.
After opening the player the spring got free and fell on your desk.
It's not essential that the spring is put back, but I would open the player again and put it in it's place again. Eventhough it's quick some work as you'll need to remove the outer cover that holds the PCB, the spring is located below the next metal shielding. Use this as a guide to where the part belongs...
