How Can a CPT in WordPress have a page 2 without an error?

If your CPT rewrite is foobar and and your post (page) slug is foobar then the URL will be example.com/foobar/foobar – if you want a top-level permalink structure you’ll need to implement it.