I’m quite certain the US government demands “show us your papers” of many individuals within 100 miles of the US border on a daily basis.
There is no law saying that Us citizens have to carry identification pricing they are citizens.
And yes, if they have reasonable suspicion that you’re lying, they can detain you.
https://www.aclu.org/other/constitution-100-mile-border-zone