Unfortunately, custom templates can't be migrated automatically from GoodNotes 4 to GoodNotes 5.
We uploaded all GoodNotes 4 templates here. Please download the ones you want to use in GoodNotes 5 to your computer or to your Dropbox/other cloud storage and then follow the instructions below to import custom templates:
How to add/remove custom templates to/from the template library