The solution to this error for me was: updating the "AWSSDK.Core" nuget package references in all the projects in my solution.
Ex:
I had a solution with 3 projects and the versions of the "AWSSDK.Core" nuget package was different.
So i updated to the last stable version in the 3 projects and that was it.