Early on May 13, Christian Lamarco, a little-known stock researcher and trader, could barely sleep. Shortly after dawn the 31-year-old would release what amounted to the magnum opus of his career: A 40-page exposé on questionable behavior at Nvidia.

The report mostly comprised a sober examination of whether the chipmaker was being honest about the scale of its China business. But at the top of Page 3, Mr. Lamarco tucked in a paragraph-long warning of the “uncomfortably close relationship” between Jensen Huang, Nvidia’s chief executive, and Alice Huang, who worked for Megaspeed, a huge customer.

Mr. Lamarco says his interest in their relationship had been piqued by reporting in The New York Times and Bloomberg News that first detailed a year ago how the Nvidia chief executive and Ms. Huang were seen together socializing with other tech executives in Asia.

So Mr. Lamarco started digging around for himself, using paid expert networks — middlemen that connect investors with company insiders — to chat with current and former Megaspeed and Nvidia employees about Ms. Huang and the companies’ business. The employees wondered about what Mr. Lamarco months ago termed “special” ties between the two executives.

But almost no one noticed his report.

Nvidia’s stock rose that day in May when Mr. Lamarco’s findings were released online. Among the little feedback, he recalled this week, was one note calling him developmentally disabled and another warning him to “watch out.”

Now, the 31-year-old looks prescient. On Thursday, Mr. Huang resigned as Nvidia’s CEO, after confessing to an extramarital affair with Ms. Huang, who U.S. intelligence has accused of being a Chinese spy.

(China rejects the espionage claims. Ms. Huang has not responded to requests for comment, and Nvidia spokesmen did not respond to requests for comment.)

Nvidia’s once-soaring shares have fallen 24 percent over the past six months, including a 10 percent drop this week after the company’s board said it was investigating the matter.

“Everyone was just mocking us and now everyone is singing our praises,” Mr. Lamarco, who runs Culper Research, named after a Revolutionary War-era spy network, said in an interview.

Mr. Lamarco’s three-person New York firm is what is known as an activist short seller, or a trading shop that tries to convince other investors that a company’s shares will fall. The firm itself also wagers money that the stock will fall; the bigger the decline, the more money it makes.

Mr. Lamarco won’t say how much he’s earned off Nvidia trades, though this son of an upstate New York pastor is reticent to cloak his research on the company in any higher meaning.

“Short sellers get sanctimonious about this but it’s like, dude, you made $20 million last year. Don’t tell me you’re doing this as a public good,” Mr. Lamarco says.

Mr. Lamarco formed his firm in 2019, initially naming it Shadyside, after a neighborhood in Pittsburgh where he was living. Before taking on Nvidia, he had spent years investigating would-be scams, pump-and-dumps and just plain old overvalued companies to scant attention.

His initial targets could be described as small and getting smaller, such as LifeMD, a telehealth company whose stock dropped from $21 in 2021 just before he published his research note to less than $2 within a year.

Short sellers are not exactly popular on Wall Street, where many investors prefer to ride the rising, unimpeded tide of higher markets. The companies they target often complain that the reports are biased, overwrought or misleading.

Mr. Lamarco’s work has attracted its share of negative attention. He says he’s been repeatedly trailed by private investigators.

After he accused Tecnoglass, a window manufacturer, of having ties to the Sinaloa drug cartel, the company denied that accusation and sued for defamation in a lawsuit that said he had “no discernible, substantial real world experience to speak of.” Mr. Lamarco’s lawyers are seeking to have the suit dismissed.

Before publishing his research on Nvidia and Megaspeed, Mr. Lamarco didn’t run his findings by either company. These include his contention that, despite Nvidia’s claim that its business in China evaporated as a result of President Trump’s trade wars, in reality more than 20 percent of the company’s “compute revenue” could be traced there.

His analyses notwithstanding, Mr. Lamarco casts himself as anything but a Wall Street loudmouth. One friend described him as “pretty earnest.” In interviews, he’s so soft-spoken it’s almost tough to catch his words.

Mr. Lamarco says he was an unremarkable student at Grove City College, a Pennsylvania religious school, where he dabbled in posting to the financial website ZeroHedge. Asked if he enjoyed any hobbies, he says tennis, but hastens to add that he’s not very good.

Mr. Lamarco’s most surprising take at present might just be a measure of optimism for the chipmaker and its beleaguered chief executive.

“We’re not necessarily saying that Nvidia is going to zero or Jensen is going to end up in prison,” he says.

What will happen, then?

“That’s above my pay grade,” he says.

Kitty Bennett contributed research.