You can try using the specific commit from ouroboros-network with the fix:
48ff9f3a9876713e87dc302e567f5747f21ad720
And use this in building cardano-node. Like so: Cherry-pick fix for p2p · weebl2000/cardano-node@9c77b3f · GitHub
And then rebuilding. No guarantees that everything will work, since there might be other changes that are incompatible but it’s worth a try. I tried it and it at least compiles, that’s saying a lot when dealing with Haskell programs.