Clever screen name ;-)
First of all, an alloy frame is not going to be any sort of usable heat sink. The good news is the BBSHD doesn't need them unless you live in a blistering climate, like I used to. If that is the case you can do this:
https://talesontwowheels.com/2020/01/28/heat-sinks-for-the-bbshd-ebike-mid-drive/
Next is a little more rain on your parade... you can expect ANY frame warranty from anyone to be voided by putting a motor on the bike. Fear not... the motor is not going to hurt the frame. The Marlin 5 is built plenty strong to handle an HD.
The current Marlin 5 Gen3 uses a Linkglide cassette and a Linkglide chain. That actually should be just fine for a mid drive. I am using an 11s Linkglide chain on one of my 11s BBSHD builds and Linkglide is purported to be strong enough for mid drive use.
If you are talking Marlin 5 gen 2, thats a Shimano HG200 cassette (steel, pinned-together so ideal for mid drive) and a KMC 8s chain. KMC is the go-to for mid drive use, although the KMC 'e' line is really the one you should use. Still, I would not be feeling so bad about using a KMC Z8.3. BUT if I were inclined to buy another, it would be the SRAM EX1 for an 8s drivetrain.
Lots more advice on parts specifics here.
https://talesontwowheels.com/2022/08/01/how-to-build-a-mid-drive-ebike-that-doesnt-break/
Myself, if I were doing any Marlin I would pull out the existing shifter, derailleur and cluster and swap in a Microshift Advent 9s system for about US$100 total, where that cluster will be an 11-48T hardened steel affair that will be indestructible. Or take the extra gear and do an Advent X with its 11-46T hardened steel cluster.
Remember when doing a BBSHD you are kissing goodbye the teeny front chainring, so the smaller range cluster that the Marlin comes with is not a good fit anymore.
There is no need for an IGH... especially since pretty much all of them cannot handle the torque a BBSHD will put out. Lots of experience in this regard if you dig around the various DIY emtb user groups. You could do a Rohloff but make sure you are sitting down when you google up the price on one of those. Regardless, there is no reason to not do a chain so long as you use a proper one.