Unfortunately, this bug results from a limitation of Typst's snap package. See their [issue](https://github.com/typst/typst-snap/issues/2). I don't think it is possible to work around this bug without fixing the upstream problem.