Please deactivate the Masonry grid and upload images of the same size and proportion. Provide your site admin access and page URL so that I could check and suggest if you still have the problem.
Sorry, my mistake. The Portfolio page is by default in the masonry grid. This cannot be changed. You need to upload images of the same size for all projects.