I wanted to ask if you are storing images after transcoding them or not. 400GB image archive seems quite a bit High to me.
If you are no,t I highly recommend that you transcode the images that the users upload, it will significantly reduce the size of your image library.
I recommend that you transcode to webp format. I tried making avif work but it wouldn't and jxl is still ways of.