Avoid using Sony during the warranty period and go back to the retailer.
There's has been quite a few reports of the PS4 Slim shutting down during certain game's, whether this is hardware issue or simply due to the make and model of HDD (Sony use a few HDD suppliers) shipped with some models I don't know