2016 X5 xDrive50i help

i bought this car as certified used about a year in a half ago. 2 month into owning i had the chassis alert which ended up needing replaced, along with an oil leak which was fixed. 3 days after getting it back i had the drive train malfunction (which went away after restarting). But Now I’m riding bumpy like an old wooden roller coaster. I have an appointment in about a week, and I’m assuming is a suspension issue. But I’m wondering at what point should i give up on this car?

its got 48k miles i have been keeping up with oil changes and tires since getting but i just keep getting smacked.

should i trade her in or keep trying to repair?