Dealing with Kernel Panics
Disconnect any third-party peripherals including any USB hubs. Use safe mode to isolate issues with your Mac - Apple Support then boot the computer into Safe Mode. See Diagnosing problems- crash, freeze, panic, or spinning beach ball?, Don’t Panic! Understanding & Troubleshooting Kernel Panics in macOS, and How to fix kernel panics after installing OS X updates | MacIssues.
Kernel panics are indicative of possible hardware failure, so you should Check your Mac with hardware diagnostics or AHT. Read the kernel panic log: Mac OS X- How to log a kernel panic.
If you have no success figuring what is happening then you may need to examine the software you have running when the panics occur. Be sure it’s all current. If you must to resolve the problem erase the disk and reinstall macOS. Follow this outline to reset the computer to the factory-new state: Factory reset of your Mac - Apple Support.
You may be experiencing a GPU failure. Make an appointment at the Apple Genius Bar for service. If you need to find an Apple Store - Find a Store - Apple. Also, see How to find your nearest Apple Authorized Service Provider (AASP) or Distributor (AAD).
"Your Apple-branded or Beats-branded hardware product (“Product”) is warranted against defects in materials and workmanship for a period of ONE (1) YEAR from the date of original retail purchase (“Warranty Period”) when used in accordance with Apple`s user manuals (refer to www.apple.com/support/country). Under this warranty, you will be able to direct your claims to Apple even in situations where you purchased the Apple Product from a third party.” [Apple One (1) Year Limited Warranty – Accessory - For Apple and Beats Branded Products Only.]