In order to avoid being consistent with the data in a big paper when writing a patent, is it okay to change the data?

No.

If you cannot directly modify the data, you must further conduct supplementary experiments and provide supplementary data, supporting information, etc. during the modification process, so as to provide reasonable and well-founded data, not to mention avoiding follow-up. The data in big papers are consistent and academic fraud occurs.