Making sure export setting keeping the same as the editing project resolution will help to solve the problem.
For example, if your project file is 1980*1080, set the resolution as the same configuration when exporting will help fixing the black bar issue.