Big problem...
Is legacy hardware.
We have a shield printer (metal and plastic), the control software only runs on DOS and the thing is attached over a serial cable. We found a "spare" on eBay for a couple of thousand Euros. A new one is around 6 figures. We collect old PCs and keep them in storage, in case the old one fails. Is it really worth spending a hundred thousand for a new printer that does exactly the same thing as the one you already have? And we don't print enough to get an ROI inside about 15 years, so we would be back at square one.
Likewise lab kit. A lot of it still works, does exactly what we need, is reliable. But the software won't run on anything newer than Windows XP. If we want a version of the software that runs on Windows 10, it will cost 6 figures and involves throwing out a perfectly working piece of precision equipment, just because the OS on the PC that collects the data has changed.
We just isolate the damned stuff from the network - either stand-alone or a separate segment just for such devices, with no access to the "office" network or the Internet.
An IT director I know works for a metalwork production company. They have an old CNC machine that works fine. Same problem. It is isolated. Every time they call up the manufacturer for support, they want to connect to the controlling PC (Windows XP) using TeamViewer. She refuses and tells them the the viewing Team is them and the console operator, who they can remote control. If they want to use TeamViewer, they need to supply an update that is Windows 10 compatible. And, no, a replacement CNC machine (250K+) is not a software update!
That is one of the biggest problems we have. We have taken expensive kit, with multi-decade lifespans and support and connected it up to a cheap PC that is obsolete after a couple of years and no upgrade path to keep it safe!
The manufacturers hope to jump on the software & services gravy train and milk companies every 5 years for a new piece of kit, when the kit is so expensive that it has a 20 year write-down. They don't/can't make the plant equipment cheaper and they won't support it with current software, that is restricted to the newer devices, to entice people to upgrade the "expensive bit".
Nobody in their right minds throws out millions of Euros worth of working equipment, just because a 300 Euro PC can't have its operating system upgraded, because the controlling software isn't compatible.
The sensible one isolate the stuff from the network and carry on as usual. The idiots leave it connected to the Internet, so a manager can check it from the beach in real time!