Being that you're on AGP 3.4+, this SHOULDN'T be the case, but have you checked your gradle HOME cache for instances of the lint.jars that may cause failing due to double reports (issues being reported both from those lint.jars and the one created by prepareLintJar)?
You can see if they are being cached by doing `find ~/.gradle -name lint.jar`. If they exist, they will be causing the failures you see. You can then run the same command appended with `-delete` and it will get rid of them. A key way of identifying that this is happening is matching the issues you are seeing thrown with your baseline. If the issue is already baselined but the build fails on it, it is an instance of double reporting. Our team is currently facing this, but we are on AGP < 3.4. Just wondering if this is a bug, because the behavior sounds very similar to what we face (inconsistent failures).
Let me know what you find!