Unity graphics engine was using a wrong check to determine whether an attachment is a back buffer or not when using Render Passes. It has been fixed and URP (using Render Graph and Render Passes in Unity 6) doesn't throw this error anymore. Thanks for reporting this issue.