I noticed that there is no module.settings.yml and module.schema.yml file present for default configuration settings.
Install the module and use it without saving its configuration. It will throw the error.
Create files to set the default configuration.
Fixed
10.1
Code