I'll try.
Does the following description help?

Both profiles can be connected in a newly installed Joplin Android app if you connect them as the first profile.

The second profile does not connect but runs into this strange error.

It doesn't matter whether you connect A-User or B-User first.