H1B visa expiration earlier than petition end date

I got my first H1b stamped from US consulate, Hyderabad. My passport expires 2028, my i797 is till may 2021, 221 g clearance came on 14 June 2018, yet they have visa expiration date as June 2020 and PED (petition end date) of may 2021. Any idea why this happened? Do I need to contact the consulate to get it fixed? Can I travel to the US immediately?



Did you get an answer for this. I am in the same situation.