Try wiping phone partition cache
Power off the device.
• a USB-C cable to a PC or another device.
• Hold Volume Up + Side Button until Recovery Menu appears.
• Select Wipe cache partition/ Confirm Reboot system.
Then also try diagnostics via Samsung members app
But if not working are you able to return it to them for refund?