I switched from KDE Panel to Latte dock panel and that is when it started. The notifications started to show at random positions.
I checked the notification settings.
Also tried setting the custom notification position in the setting. Nothing works. It just pops at the center of the screen and it is very annoying.
Any help would be appreciated. TIA.