Earlier quoted context omitted.
This is considered a critical security vulnerability. [0] [0] https://owasp.org/www-project-top-ten/2017/A6_2017-Security_...
Not if it's open-source. Security by obfuscation is generally not a good option if you can avoid it.
I strongly urge everyone to hide their stack traces in production. This will reduce your application's attack surface.