I had the same issue with Fedora 39. After upgrading, I noticed the option to not suspend with lid closed missing in Tweaks. I did a good search and someone suggested editing a config file. I got it to work but I didn’t document it.
If I find it, I’ll update, but I suggest you googling it like I did. Or someone here may have already posted the right file to edit.
I found this annoying, and not sure if the missing setting is intentional or not.
It certainly sounds like an issue with that slot. Did you check if all pins look okay?