You’ll need to get a fire rated media safe, not just a fireproof safe. A regular fireproof safe will keep the internal temperature below 175C if exposed to a 30 minute wood fire - what you’d typically experience in a home fire. The 175C is to stop paper from igniting, but at that temp your HDDs would be toast.
A data/media safe should maintain an internal temp of under 60C if exposed to the same fire. That means it needs to have much more thermal insulation, and as a consequence it will be significantly bigger and more expensive. To fit in the whole enclosure, you’ll probably have to pay more for the safe than the HDDs.