Chosen Solution
Why is Logic board overheating after replacing the charging?
Likely a faulty charging port, try unplugging the port and seeing if the logic board still gets hot. If it still gets hot, it might be a motherboard issue. If not, all you need is a new charging port.