If your iPad 7th generation keeps restarting, there are a few things you can try. First, make sure that your iPad is up to date with the latest software. You can check this by going to Settings > General > Software Update. If there is an update available, install it.
If your iPad is up to date, try restarting it. To do this, hold down the power button and the volume down button at the same time until you see the Apple logo. Once your iPad has restarted, try using it again to see if the issue persists.
If your iPad is still restarting after you have tried these steps, you may need to take it to an Apple Store or authorized service provider for further assistance.