Thanks for the hint. I did just check and it does seem to be maintaining 4th gen between reboots. I do automatically set the M.2, chipset, and PCIe slots as fixed at PCIe v4 in the BIOS, I hate letting the board determine it automatically and have some weird response set it down to 1.1 or something.

So at least on the carbon wifi it's not experiencing that issue. If the Tomahawk is, that's a fairly significant issue that a lot of folks might not notice. I wonder if your BIOS upgrade went wonky or something? Any other folks that you've spotted reporting this? I was unable to find a Tomahawk x870 motherboard beta BIOS page...
In my (and another commenter's case a few pages back, I forget which right now) the speeds are definitely PCIe v4 level, but random write IOPS is much lower than it should be on the first M.2 slot:
View attachment 199084
This was from just after I upgraded to A25. The random write on A21 is around 1.2 million IOPS with the same hardware.
Strangely, the M2_3 slot has better performance in Random Write (which is what you really want over Sequential), but a sequential read that is slightly lower than it should be, even when factoring in the overhead from going through the chipset:
View attachment 199085
I expect to see a slight difference, like the difference between the random read on the two drives, but everything is fairly significantly lower on that D drive, except the random read IOPS which is about the delta it should be (around 3%).