Displaying the names

Good day. Can you please tell me how to implement a blueprint system for displaying the names of items on the screen, preventing them from overlapping? Display example below. Thank you in advance for your help.