You can disable the trunk/hatch warning beeps in the uConnect settings. I keep it disabled, as I don't like the sound. I'd rather warn anyone nearby as I open it myself.
That being said, why in the world are you hearing 40 beeps? It probably beeps 5-7 times and that's all. By then the hatch is open.
2017 Gas Touring L, Curt hitch, 13" aftermarket overhead screen
2018 Limited PacHy, Curt hitch, Weathertech, B1W hardwired dashcam
2019 Limited S PacHy, Drawtite hitch, Weathertech, B1W hardwired dashcam