I had good job security doing in house IT for some companies. Never have seen anyone being laid off, could've stayed there for years to come, the stuff I've built was actively being used and made work easier for people. The domain knowledge I gathered even strengthened my job security as it was more efficient to pay me over having to re-train other people. The only risk to my job was me as I left for a startup after a while. Sure, pay wasn't that high compared to FAANG but at least I didn't make peoples life worse while also hating my job.