The tape might work for you and worth a try if you have it
The capping is really too small and ideally would be replaced with a better size and profile. The downturn should extend into the pan and extend over two ribs
I am guessing that the sheet was at the end of the run ( last sheet laid) and the flashings were generic size and not custom made to suit the situation