I was running into the same error (i.e. "Government reference number is not valid. Please recheck if its correctly entered or belongs to the correct Consular Jurisdiction").
When I waited for 2 days, I didn't see the error any more.
Posting this update to help others.