Welcome to the Doom Club!
You're probably doing something to attract trouble. Get spotted by aircraft, or making too much noise. NEVER approach a convoy at more than 3 knots. Allways approach in SILENT running (keyboard Z). The moment you see an airplane dive. Same with any warship.
In my last patrol, must of my contacts were with warships. But I did sink one destroyer. Had to skulk away back to Kiel with a heavily damaged boat and low tonnage.
Read the manual and visit my website.
Be afraid, very afraid