Return to base. Type IX is slow to dive, especialy with destroyed dive planes.

You probably have some hull damage, which reduces your max depth.
When I spot a plane, I crash dive and after I'm completely submerged, I change course for about 30 degrees.