Its all depends and m,any factors need to consider to identify the issue,
Like example :
how is the Load on this Device? when the ping loss noticed, interface utilisation ?
can you show us some examples of Ping Loss (is this directly connected device ?)
what is the CPU consumed at that time? how many devices connected, what part of the network this switch ? is this main switch which processes all your Core operations?
Where are you pinging to source and destination example will help to identify the issue?