it kept freezing every time I tried to recover it.
It might do that if your computer fills up.
Desktop > Go > Computer > Control-Click on the hard drive (mine is Macintosh HD) > Get INFO.
Attached. Available: is important. It should be bigger than about 10GB to 20GB. This is assuming you’re using the built-in drive on your Mac. If you regularly record 5 hours, you’re going to go through drive space in a hurry.
Assuming there’s room. Audacity can take several times the size of the show in storage while it’s working. If you don’t have enough room to rescue the show plus housekeeping, you’re just going to go 'round and 'round like you did before.
As a factual point, to have saved your five hours as a stereo Audacity project (AUP) you’d have needed by default a minimum of 6 GB, and in practice a bit more to allow for moving all the data around.
If you were exporting a 16-bit WAV or an MP3, you need less.
All this means is that you had say 10 GB when the problem happened, you probably had enough space. It would have been painfully slow to save but there was some other problem.
But you don’t have enough space to edit with at 10 GB or even 20 GB. Each edit of that complete recording takes another 6 GB. So run for example Bass and Treble and Normalize on it, and you’ve used 18 GB.