Please update Bouncy Castle Crypto to verison 1.64. It contains critical issue:
CVE-2019-17359: A change to the ASN.1 parser in 1.63 introduced a regression that can cause an OutOfMemoryError to occur on parsing ASN.1 data. We recommend upgrading to 1.64, particularly where an application might be parsing untrusted ASN.1 data from third parties.
Link to Bouncy Castle Crypto: https://www.bouncycastle.org/releasenotes.html