The worrying bit is that it takes 20 minutes to recover.
Typically this would indicate an overheating problem but why it should manifest itself only after revving past 5000 is rather odd.
If you haven't done so already you need to go back to basics and check things over one-by-one and make sure you test the car after each one.
I'm sure I can come up with some more but these are the things that spring to mind:
1) The cam timing is off, once you get to 5000rpm the poor breathing makes the engine struggle and the fuel supply fails due to lack of air flow. Removing the load (ie dipping the clutch) should allow it to recover pretty much immediately.
2) The fuel has a partial blockage probably based around the secondary circuit. Again the car should recover once the load is removed as the primary circuit should more than sufficient to cover the fuel supply requirement.
3) The engine has a major air leak, this could be anything from the manifold to the head or block. A compression test on a hot engine should show if it is within the main block assembly.
4) The oil pump is not providing enough pressure, you should see warning lights and a low reading on the gauge if it is - this would result in the engine overheating. It is possible that one or more of the oil pathways is coked up and the oil supply is inadequate for high revs. This would not show on the gauge or warning light - only an examination of the bearings would give a real indication. The engine would massively lose power as it is trying to sieze up when hot and revving hard and it would take time to recover.
5) The igntion system is suffering a major failure, the distributor advance could be off, the coil could be on its last legs, etc. Only replacing the individual items one at a time will give you the answer unless you have a proper diagnostics machine.
6) The water pump is not working to spec so it over heats under load, this could also be the radiator blocked internally so the cooling capacity is reduced.