Actually me too faced the same problem of custom post type with template page seems 404 error. The problem was my page name and custom post name was same. I rewrite the custom post type slug while registering the post type, it works perfectly. And don’t forget to update your permalink after rewrite.
‘rewrite’ => array( ‘slug’ => ‘book’ )
Thank you.