One replacement is get overlapping actors from your player character. Whenever you overlap two pickups, press interact input key and call “get overlapping actors”, connect a “for each loop” to the array output, cast to your pickup actor BP and execute your pickup logic if the casting succeeds.
Keep in mind that the “for each loop” node will pickup all interactables nearby player. Now, if you want to pick one by one for every input press, instead of using a “for each loop” node, get a “get array element”, set index to zero then cast to your pickup actor BP, and execute your pickup logic if casting succeeds.