As @user206550 suggested, using just Matern(1 | x + y) works. It seems strange that spaMM::Matern(1 | x + y) would cause the kind of error message mentioned, but it seems it just is like that.
Matern(1 | x + y)
spaMM::Matern(1 | x + y)