Most consumer LiFePO4 power stations have this sensor and cut charging below 0C, still allowing discharge up to around -10C.
If you are mostly concerned with low-temperature charging you could even power all that from the charging side only.
Being under ground will prevent both over-heating and freezing assuming your circuit is per spec designed to run cool. This can also reduce tampering. If you are not concerned about serviceability of the circuit board then you can put it in a small enclosure and fill it with epoxy so that the entire thing is water proof. There are epoxies designed to conduct heat but not electricity.
This assumes of course that your setup is meant to be stationary.
[1] - https://www.amazon.com/s?field-keywords=lifepo4+heated