“/by zero error” occurs in Terrain-correction(EPSG:4326)

according to this post (Aggregation and Interpolation of Sentinel products - should I use snappy or GDAL tools?) it is related to the digital elevation model. Which one are you using and where is your study area?