Porosity of certain classes of operators in generalized metric spaces