Create Page with Pagetemplate and get a post_type_object->template

There are two completely different templates in WordPress – page templates and block templates. Your wp_insert_post assigns page template, which must exist in your theme directory and should be properly created (see docs). WP will automatically detect and use it to render this page. This is in no way related to $post_type_object->template.