It is not possible to verify the problem further since the "corrupted" pdf is not provided and the problem can't be reproduced since your installation is not clear at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As shown in xetextest-2019.log PDF output driver (dvipdfmx) failed to process the input for some reasons.
It is not possible to verify the problem further since the "corrupted" pdf is not provided and the problem can't be reproduced since your installation is not clear at all.