The M5 model has a battery guide, but fan replacement requires removing the logic board.
What to check before buying
Cooling
iFixit's fan guide says accessing it requires logic-board removal. A fan repair therefore involves more disassembly than an externally reached part.
Battery and charging
Battery and MagSafe-port replacement have separate guides. The model is the base 2025 M5 14-inch Pro, not a prior M4 revision.