Still issues with the car not starting!

Yes that is exactly what my starter relay looks like. So if the ground is the mounting bolt that should be sufficient I hope. I still don't understand how this could happen when the car is hot but when the car cools down it functions fine?