Another point I should mention: the previous website was including www but when I moved to the new website it became non-www. So!! Do I need to change address in the google search console when moving from www to non-www?
If these pages are comparable, you have to use 301 redirects. In other words you need to inform Google that your site moved to a new domain and URLs were changed. Now Google thinks that these pages are duplicate content because Google has this content in its index.