Apparently, the issue was solved.
The following solution proved to be effective in this error:
In Solution Explorer right click on the project -> Visual GDB Project Explorer ->Embedded Project -> Regenerate MCU Files -> Apply & Ok
However, the relation between this solution and the given error is still not clear. Finding the solution to this error was like trial and error.