Stop scanning before calling connectGatt may help.
This happened in some legacy Huawei/Honor devices.
Ref: https://medium.com/@martijn.van.welie/making-android-ble-work-part-2-47a3cdaade07