The solution in my case was simple. Setting JAVA_TOOL_OPTIONS to -XX:MaxDirectMemorySize=200M resolved the issue. Default with the buildpacks was 10M, which was not sufficient.
JAVA_TOOL_OPTIONS
-XX:MaxDirectMemorySize=200M