FYI, that timelines is incorrect and so is the itinerary for her [2].

She visited TSMC NOT Nvidia (NVidia are based in California).
She did plenty of other things in the (very short) visit. China announced it was halting sand exports (and other trade) the same day [3]

He sold his Nvidia shares (Options actually, sold for a loss) more than 2.5 months after all of this (Oct 17th [1], she visited on Aug 2nd). He also sold his Micron Tech holdings at the same time (which benefitted hugely from the CHIPS act) so he traded exactly the WRONG way if he'd known what was coming.

Whoever gave you this narrative is lying to you.

Sources and quote:

[1] https://www.reuters.com/technology/us-speaker-pelosis-husban...

[2] https://en.wikipedia.org/wiki/2022_visit_by_Nancy_Pelosi_to_...

After departing Malaysia, Pelosi's delegation arrived without incident in Taipei, Taiwan, at 10:43 pm National Standard Time on the evening of August 2 via a US Air Force transport plane and was received by Minister of Foreign Affairs Joseph Wu and Sandra Oudkirk, Director of the Taipei Office of the American Institute in Taiwan (AIT).[6][29] Pelosi tweeted that her visit was a sign of the United States' "unwavering commitment to supporting Taiwan's vibrant democracy."[1][30] Upon Pelosi's arrival, both the ruling Democratic Progressive Party and opposition Kuomintang endorsed the visit[31] and Taipei 101 illuminated a welcome message for the delegation.[5] The delegation stayed overnight at the Grand Hyatt Taipei.[32]

(...)

Following a breakfast meeting at the American Institute in Taiwan on the morning of August 3, Pelosi visited the Legislative Yuan with her delegation.[36] While there, she was received by vice president of the Legislative Yuan, Tsai Chi-chang and addressed the legislature in a short speech, saying Taiwan was "one of the freest societies in the world". She advocated further US economic cooperation with Taiwan with the CHIPS Act, and in areas relating to climate change, the COVID-19 pandemic, and democracy.[37][38]

She proceeded to the Presidential Office Building and met with President Tsai Ing-wen, who awarded her the Order of Propitious Clouds (with Special Grand Cordon).[39][40] A closed media session was held afterwards with only Taiwan's Central News Agency, Bloomberg News, and Japan's Asahi Shimbun in attendance.[41] Pelosi expressed her views that China's anger at her visit was due to her being a woman and not because of her rank as the highest-level American politician to have visited Taiwan in 25 years.[42]

At noon, President Tsai hosted a banquet at the Taipei Guest House to entertain Pelosi's delegation. Taiwan Semiconductor Manufacturing Company founder Morris Chang, chairman Mark Liu, and Pegatron vice chairman Jason Cheng were invited to attend.[43][44]

The delegation's final activity was a visit, at about 2:40 pm for an hour, to the National Human Rights Museum at the Jing-Mei White Terror Memorial Park documenting the White Terror period in Taiwan. During the visit, they met with Wu'erkaixi, a former student leader of the Tiananmen Square protests, Lam Wing-kee, a dissident Hong Kong bookseller, and Lee Ming-che, a Taiwanese activist who was imprisoned in China[45][46] and Kelsang Gyaltsen Bawa, the representative of the Tibet Office in Taiwan.[47]

In a press release, Pelosi declared that the visit "in no way contradicts longstanding United States policy, guided by the Taiwan Relations Act of 1979, US-China Joint Communiques and the Six Assurances. The United States continues to oppose unilateral efforts to change the status quo."[48] NSC representative Kirby reiterated this perspective at a press conference held during the visit saying, "The Speaker's visit is totally consistent with our longstanding One China policy."[49] Pelosi departed Taiwan for South Korea after 6:00 pm on the evening of August 3.[50]

(Personal opinion: that's a lot of work for an 82 year old woman...)

[3] https://www.reuters.com/technology/us-speaker-pelosis-husban...