You may change the default branch on your VCS provider, and sometimes that change won't be reflected on CircleCI. This can cause issues with some features that rely on knowing which branch is the default.
You can re-establish the correct default branch on CircleCI by removing/re-adding the project with the following steps:
1. Remove all CircleCI webhooks and services from your GitHub repo settings.
2. Tell the project to stop building on CircleCI through "Project settings".
3. Add the project back on CircleCI.
This will update CircleCI with the correct default branch information