WhatsApp notification on iPhone lock screen shows contact name instead of nickname
Had this same problem and got the below reply from whatsapp support

To turn on previews that display the contact name but not message:

Go to WhatsApp > Settings > Notifications > turn Show Preview on.
Go to iPhone Settings > Notifications > WhatsApp > Show Previews > Never.