The warning ”You can only call cameraColorTarget inside the scope of a ScriptableRenderPass. Otherwise the pipeline camera target texture might have not been created or might have already been disposed.” highlights that the cameraColorTarget is being called outside rendering execution.
This property should be accessed withing ScriptableRenderPass::Execute