Links to broken uploads in topics lead to 500 errors with 2.5.0

This to me very much sounds like an incompatible plugin, what unofficial plugins are you running? Have you tried rebuilding without them?