That's the classic case of an unbalanced battery. It's got a bad cell group that's close to empty, but the other groups are full so the charge voltage appears great at 41.4V When you ride it, the bad cell is empty after a few miles. When you try to recharge, the good cells recharge quickly and shut off the charger, so the bad cells can never get filled. My Ecotric battery did this after 25 months,
Some batteries have balance circuits to address this issue, but most inexpensive batteries don't. As a result, there's no good fix, in my opinion. Low quakity cells in the battery are the root cause.