I don’t know how the model is defined, but one often overlooked difference between different OSes is the sorting of file names, so I guess your might be facing the same issue for a later input.
Feel free to post a reproducible code snippet by wrapping it into three backticks, as mentioned before, so that we can take a look.