Error while uploading code

the board had initially become hot a lot, could that be the issue?

Yes, The processor should never become hot. Why it got hot would be important to know so the same thing does not happen to the new Liliypad, cause I think you may need to get a new one. What was connected to the Liliypad? How was it powered?