Weird canvas sizing issues in Safari (IOS/Mac) and in Firefox

My project has no textures with more than 2048x2048 resolution. I checked every render target texture in editor with script I wrote.
When I’m trying to resize canvas to fill window on IOS/Safari on mac (latest) and in firefox - I’m stuck with maximum canvas size 920x920. If I’m going higher - it just crashes constantly, but shows me my textmeshpro widget. Crashes with: “RenderTexture.Create failed: requested size is too large”.
How to fix or diagnose that? Or at least how to size this canvas to fill window without resizing canvas element itself if it can’t be resized? Maybe zoom in and then disable scrollbars in CSS?

Does this happen if you switch to fullscreen too?

My best guess is checking which TextMeshPro widget causes the issue and then check if there’s any settings that may affect this error.

Also try using a fixed rather than dynamic font atlas in TMPro settings as you want to make sure the font atlas is as small as possible on the web.