Another issue with game dev for games that release on PC is that devs are usually on very high-end machines. NVMe RAIDs, 3080's, etc. Great for productivity, but there's very little dog fooding on low-spec machines.
That is true. The game I worked on was also on PS4 and Xbox One, which are both somewhat similar in architecture to a PC (at least in terms of CPU performance), just slower. If we could make the game perform well on the XB1, we knew it most likely would do well on PS4 and PC as well. But you're right, there could be PC-specific issues that would only show up on low-spec PCs.
In previous console generations things were harder back then as each platform's code was more different than now.
I have been deeply impressed with the unreal engine over the last few years. If a gaming studio picks it, chances are much higher it works well on mid- to low tier machines. It's incredible how well optimized it is. It probably takes the "looks per CPU/GPU cycle" crown if that is a thing. ;-)