A man died after collapsing while waiting for treatment in the busy A&E department at Hospital, an inquest heard.