In your case, since you have passed 165 out of 180 credits, it is possible that you may be eligible to receive a Postgraduate Diploma (PgDip), but not an MSc degree. This is because you may not have met the full credit requirement for the MSc program. However, it's important to note that the specific rules and regulations vary between institutions and programs.
To determine your exact academic standing and whether you are eligible for a PgDip or an MSc degree, you should consult with the academic office or department at your institution. They will be able to provide you with precise information about the credit requirements and any remaining coursework or projects you may need to complete to earn your desired qualification.