Find a supervisor that you like working with - that's much more important than the specific topic you pick. And then talk to that supervisor about potential topics.
This is the best advice and the largest mistake I made when going to grad school. I was not engaged with what my advisor was interested in and doing. They (kinda rightly) didn't give a shit about anything outside of their lab's scope of work. Find an advisor whose niche is related to what you find interesting. Otherwise don't expect much attention or feedback from them.