If it quit charging, you might be in for a surprise when you pull the flywheel off and find broken/unglued magnets.
I hope not, for your sake!
They are not fun to re glue and they have to be put in correctly as far as polarity and spacing.
The magnets are not available and I'm not sure, but the M-20 flywheel might be different from the more common M-18 if you are planning on replacing the complete flywheel