A regression test demonstrating the problem would be helpful
Comments
https://github.com/openjdk/jdk/blob/master/test/jdk/java/lang/reflect/MethodHandleAccessorsTest.java covers the test cases when an argument of an invalid type is passed to Method::invoke or Constructor::newInstance.
This regression test does not uncover the issue from JDK-8277964 because the issue has to involve specific methods for example sun.invoke.util.ValueConversions to get JIT compiled and omit the stack trace in exception thrown. -Xcomp does not reproduce the issue by itself.