Perhaps you are near a scort carrier or something like this.
i remember a convoy attack and was very difficult for the planes circling the zone, finally i sunk the carrier in a periscope depth attack at night.
As in real life an aircraft makes the submarine life a misery and the best is navigate in deck awash to reduce the dive times.or finally use a snorkel with radar detectors.