Yes, but OP mentions they're using Android. And the long chain is for (older) Android phones. So one would assume there wouldn't be an issue with the long chain, right?
The following thread had the same issue with an older Android (5.1), but with a stock ROM everything was fine again: Trust anchor for certification path not found (Android 5.1) - #6 by Martin38