Hi RianOu,
Congratulations on your new iPad Pro! We can see why you would be concerned about things unexpectedly restarting, and you're in the right place for help. To clarify, did you see a spinning gear appear on the screen, or the Apple logo? We ask as these could mean different things, and will help us better determine our next steps.
In the meantime, we invite you to check out the resource below, which provides additional steps for what to do if an app quits unexpectedly.
If an app unexpectedly quits, stops responding, or won’t open
If the behavior only happens when this app is in use, that would point toward it being an app-related problem and not a hardware issue with the iPad Pro.
Best regards!