Hi Cillus,
I am experiencing a similar issue with the native builder in version 8.18.5. The error message is very similar and occurs whilst attempting to build the android app. This always happens between 5 and 7 minutes of the build.
Here is forum card I created: https://forum.mendix.com/link/questions/107151
Have you had any success with a solution yet?