What broker are you using? It sounds like it’s the MQTT broker that’s aborting the connection.
We’re not doing any client-side validation of topic names and I don’t think we should be, since it’s impossible for us to know what the broker deems a valid or invalid topic. With certain brokers ‘A#’, or ‘/topic/#/valid/’ may be valid topic names and we wouldn’t want to restrict that, even if it may go against the standard naming convention.
Do any of your onSubscribeFailure, onConnectFailure, or onConnectionLost callbacks get triggered?