An aftermarket charger doesn’t perform an handshake with the system as the original charger does, it just releases power regardless. There’s likely a board level issue at first power stage, preventing the original charger to release power as it detects system onewire is faulty. Although an aftermarket charger “works”, you’re highly increasing odds to add to board damage as it is already working in a condition it shouldn’t run at all.