In new gitlab version, you can leave a project not owned by you, by following these steps:

1- Go to the project page

2- Click on Project Information at the top left corner

3- Click on members

4- Find your name among members and click on red leave button