The message “Unconfirmed” or “Generated but not accepted” (also called an “orphan”) means you found a block but someone submitted the same result just before you.
Your result was therefore generated but rejected by the network because it can’t have two identical blocks – and someone beat you to it! Orphan blocks like this do not disturb your staking.