Some practical consideration work in your favor. Small companies don't have enough money to make good targets, big companies can mount a big defense, so they aren't good target either. I suspect that it is so costly to litigate that unless a big company is gunning to kill one of their smaller competitors, many of the existing patents have their main use to promote cross licensing and as a defensive measure.
Having said this, I worked for a company that fought off a suit from a competitor that was ten times its size for IP that was very closely related to the core business done by both companies. Lawyers collected years of engineering records, source code from past software releases, deposed most of the developers who had worked for the company for the decade previous.
The company I worked for prevailed, and was able to stay in business. They didn't get any money, but their court costs were covered by the attacker and it led to some helpful cross licencing to prevent future suits. Some lessons learned from the process included the need for better engineering documentation, a renewed push to use patents for protection and to keep our work as confidential as possible.
Other lessons related to the company having professional relationships with employees. The trial phase depended on testimony from a developer who the company treated pretty badly as he was exited. I would say that there was a lesson that the company needs to have oversight of managers to insure that they never belittle the people who work for them. It may have also contributed to a sense of being indispensable in one of the other developers who helped defend. That person later became pretty hard to manage (he was shocked and pretty vocal at the unfairness of receiving two reprimands, and later resigned, maybe as a third loomed on the horizon).
Another effect you could consider as well is that the company stock got a boost when the litigation ended. Employees who had options that expired before that point lost out. The company had a bonus program, but the litigation costs were a head wind for the company that prevented payment or reduced the amount of the bonus for several years.
For me, a benefit that grew out of the problems was that the company gave classes in generating ideas, what can be protected by patent, copyright, or trademark, what record keeping is needed for IP, and a chance to get to know a really great patent attorney. The company put a lot into filling the patent pipeline with a several new disclosures and applications each year that turned into a harvest of several granted patents per year many years later. For engineers with Masters and PhDs, it was a boon to their job security and pay if they worked on patents.