Thank you for reporting a bug to Unity.
After reviewing the behavior, we've confirmed it aligns with the current design and intended use of the feature.
The behavior we observe is that enabling the camera rect randomizer leads to an increase in RAM usage. On the machine we tested this on, the Graphics Memory grows from ~500 MB to 1000 MB. After the intial growth, the RAM usage fluctuates in a stable range, and does not continue to grow any further. If the randomizer script is disabled, the RAM usage quickly drops back to the initial 500 MB usage.
Every time the camera rect is changed, the camera resolution is changed, too. This leads to camera-specific render targets being re-allocated in the new resolution. Temporary textures allocated via Render Graph will remain in the resource pool for 10 frames. This avoids having to re-allocate e.g. a texture that is used only every other frame. Instead, the texture from two frames ago is re-used.
Because the script triggers allocation of a different size render target every frame, it leads to having 10 frames worth of render targets allocated. This explains the increase in RAM usage.
Generally, changing the rect expensive, and should not be done every frame. The RAM overhead is expected.