factually wrong

  1. The meaning of the sentence is factually wrong, despite being grammatically correct.
  2. The sentence’s meaning is factually wrong, despite being grammatically correct.
    Please correct the above.
    Thanks.
  1. The meaning of the sentence is factually wrong, despite it being grammatically correct.
  2. The sentence’s meaning is factually wrong, despite it being grammatically correct.

This is not the natural phrase order, which would be:
Despite being grammatically correct, the sentence is factually wrong.