Hi David,
It sounds like the battery is charged, 41.6V is ok, so that might explain why its not charging: could there be a poor contact between battery and bike e.g. oxidised layer on contacts, or a loose connection elsewhere? That might account for the 'flat battery' diagnostic on the bike -...