I worked on Rappan Athuk for 5e and can attest that it is absolutely huge and will also most likely kill characters.
The only advice I have about Megadungeons is: make each level reasonably sized, and make sure there's a clear theme for each level. So, you can have 5-10 rooms in a level, but...