Why is it surprising that Hamlet talks of 'the pangs of dispriz'd love'?
Rejection in love is not a problem that Hamlet has had: Ophelia seems to love him, although (as Hamlet will have been well aware) she could not show her interest in him too openly.