Same issue I faced when taking refund from traces website, I had to change my name from M John to John Kennedy Kumar in Aadhaar and PAN card.
Later, I faced issue with Marriott as Marriott accepts only first and last name, it doesn’t accept middle name