Hi,
as the error message says, you have to use the 'responses' argument with inla.stack() when involving inla.surv response objects.
Unfortunately there is no complete example for exactly how to use that feature.
I would strongly recommend you use the inlabru package interface instead of plain INLA for this, as inlabru removes the need for direct inla.stack() calls, and nlabru handles the inla.surv response objects automatically (precisely using the 'responses# argument to inla.stack() internally).
Manual use of inla.stack() should be considered a legacy feature that's still visible only to support old existing code. New code that would have needed it in the past (before inlabru 2.11.1 from 2024-07-01) is much better off using inlabru instead, as that's what it's for (it's one of the several reasons inlabru exists).
Finn