How to reduce UE5 folder size after building from source?

Hello, two weeks ago I made a feature request related to the built-in media player (Improvements for built-in Media Player). No one answered, but I really needed this functionality, so I decided to modify the Unreal Engine source code. Everything worked out, it wasn’t too difficult. Here is the result:

Before:

After:

But now, I have different problem. After building from the source, Unreal Engine folder takes up over 180gb of space on the hard drive. I understand, and I apologize, as such questions have probably already been asked many times, but do you have any suggestions how to reduce a folder size on macOS?

Also, I’ve never used github for such things, can anyone explain how to create a pull request so that these modifications are added to the release version of the engine? I have added a couple of lines of code to the AVFMedia plugin…