Fedora 42 not resuming from suspend when Power source is changed

I recently started using Fedora KDE on my Dell Latitude 3350 from windows 10 and recently started having an issue where if I was on one power mode (Power or Battery) then during the suspend switched to another mode the laptop won’t wake up. originally my settings were that in case I’m on power the profile will be Performance and if I’m on battery the profile will be power save. I thought that was the issue but even after making all of them balanced the issue still repeated itself. I have currently unchecked the setting of changing screen brightness on the power management and it hasn’t repeated the issue I don’t know if that was the source of my issue.