User Configuration > Administrative Templates > Microsoft OneNote 2016 > OneNote Options > Other
User
HKCU\software\policies\microsoft\office\16.0\onenote\options\synchronization
Set the number of days until OneNote warns that the server is inaccessible and prompts for a new location for the affected files.