A cheap fix that may work is getting some dowel from a hardware store the extends over the edges of the lid. Using soldering iron or drill make holes and with zipp ties attach to the lid on outside on top giving support like ceiling beams in a house. Maybe a zipp tie every 2 or 3 inches. This could suck it up enough that the heat from lamp is a non issue and latches may work again.