Paraview error: Segmentation fault

I have installed Paraview and can open it manually and it works fine. However, while trying to open it in wsl window I’m getting an error.

I tried the command paraFoam, paraFoam -touch later paraview& but I’m getting the same error.

I even tried the following commands to fix this issue but it didn’t work.
sudo cp /usr/lib/x86_64-linux-gnu/ /opt/paraviewopenfoam510/mesa/lib/
sudo strip --remove-section=.note.ABI-tag /opt/paraviewopenfoam510/mesa/lib/

One thing to add I have downloaded the paraview manually and I have 5.12.1 version, and have added it’s path in extended libraries list.

The command was working before the reinstallation of OpenFoam, I don’t understand why it’s giving this error now.

Hope to get some solution to this.
Thank you in advance

Thank you for the suggestion.

I have already installed the version 5.12.1 of paraview from the official website and it works good manually. The problem was with wsl and now it’s cleared for me.