As a workaround, you can click the move button () to restore their previous size and position.
Note that this issue doesn't affect the restore button. Because when you click the restore button to restore an app, it's not maximized along the left or right sides of the screen after launching.