Hm okay,
Could you try disabling all other plugins to make sure it’s not some interference?
The error says wp.media doesn’t even exists.. so this happens when you click the “Add to gallery” button for a gallery field. But where? Is it on a post/page or something else?