As reported in this zulip chat, we get a cryptic IllegalArgumentException when we call DefaultGaussRAI.compute() with a sigmas whose length does not match the input dimensionality. We should try our best to mitigate or fix this.
Here are my suggestions for fixes.
But, there is a third option: using Contingent! We can't use this when porting the fix to ImageJ Ops2, but it could help avoid the issue in this project.