As the title suggests, selecting object by same name selects all objects with that name even from hidden and locked layers. "Select hidden objects" is not turned on. "Edit all layers" is not turned on.
Note that select shape works as it should and does not select the same shape on hidden layers when "Select hidden objects" is not enabled; however it does not work with select name.
Windows 10, Affinity Designer 2.31