CPT do not qualify for Cap-gap extension however you seem to have a timely filed and approved H1B with COS so you may stay in the US not exceeding your 60 days grace period from the date your CPT program ends.
I dont think you will have any issue with future stamping.