There is a very high quality free open source project called Open Broadcaster Software (OBS).
In the Classic version there is a plugin which stops the recording and saves it and then starts recording again.
Payment will be charged to i Tunes Account at confirmation of purchase• Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period• Account will be charged for renewal within 24-hours prior to the end of the current period, and identify the cost of the renewal• You can stop the subscription at any moment.
The plugin is called Record Splitter and is available at that link currently.
You configure how long you want it to record before splitting.