The Windows 11 taskbar isn't yet designed to face size changes.
This problem isn't with you. It's with everyone who have changed the size.
The only remedy is to change the taskbar size back to default using registry.
If you don't remember it, type running sfc /scannow in admin cmd.
Then restart your PC.