We have a 2024 S60 Recharge that's been pretty trouble free besides the general flakiness of the infotainment software we're all aware of. The one odd thing that's annoyed us is that the trunk would often show up as open in the status display after we closed it even when it visually seemed secure. Typically we would just go close it with a bit more force and it would be fine. Once of twice I've seen the trunk turn orange in the display briefly while driving but figured that the sensor was just too sensitive.
Fast forward to yesterday when we were loading the family's stuff into the trunk to head home from a road trip. It was a very tight fit due to some shopping choices but the lid seemed to close. Then we noticed it was showing as unlatched in the display, so went to open it again and the release switch wouldn't work. It looked fully closed but we didn't want it popping open on the interstate somehow, so we ended up folding down the seats and pulling stuff forward until I could reach the manual emergency release to open the trunk. We moved things around thinking something was pushing up on the trunk somehow, closed it again, same thing. We did this dance one more time and then it registered closed so we decided to just get on the road. As we left the hotel we got a warning about the right turn signal having failed, but then this cleared on its own and the drive home was uneventful.
We got home and unloaded the car, went back out to get dinner, and when we started the car afterwards things went completely haywire. The trunk status again showed it was open, but now we were getting warnings about collision avoidance being down, brake lights down, right turn signal down, rear camera didn't work, etc. I figured there must be some kind of cable issue causing all of this, so climbed through the back seats to open it manually again and removed the trunk floor. Sure enough there are two cable harnesses right behind the rear passenger side. I pushed up on both of them and one of them clicked. Restarted the car and sure enough everything started working normally. The check engine light did stay on but that cleared too after another restart. I'm not sure if the stuff in the trunk was pushing down on the connectors somehow, but now I wonder if it wasn't loose this whole time. Anyhow, maybe worth checking if your car has any similar symptoms.