You haven't answered either of my questions with any accuracy.
There are many motherboards that are Gigabyte B450M. Which specific model are you using? and Which specific SSD do you have?
Is it installed correctly, with the standoff installed first, then the small screw that fastens it perfectly horizontal and parallel to the motherboard.
Is there an option in UEFI/BIOS that enables the slot that you are using?