H1B visa stamping appt in 2 days but passport front cover detached

I have a h1b stamping appointment in 2 days and today when I entered India, I was told the passport is damaged becase the cover page came off ( the thick leather like covering to the booklet ). Now what do I do ?
Can I submit this passport for visa stamping and. apply for new passport once my visa comes back ? will that work ?

Please share any update on your case.