update: transforming the Kotlin object to a class fixes the problem
IllegalArgumentExc: Stack size negative after instruction [] invokestatic