I found a roundabout but permanent solution to the problem.
- Download a simple program called coral. It lets a user prevent maximized windows from entering a certain area.
- Dock the coral window to the part of the screen with the taskbar.
- Right click the window and click on options.
- Change the height (if the taskbar is on the top or bottom) or witdth (if the taskbar is on the side) to 2.
- Make sure transparency mode is checked
- Now you should be good to go. Windows will no longer maximize in the area dedicated to the sliver of taskbar.
I hope this helps everyone having this issue.