Deadlock found when trying to get lock, try restarting transaction | Facebook for Woocommerce [duplicate]

  facebook-graph-api, mysql, php, woocommerce, wordpress

The following error shows up daily multiple times (not continuously), is there any way I could figure what is causing it and how to solve it?

Error Deadlock found when trying to get lock; try restarting transaction [in wordpress db inquire? (its something translated)] DELETE FROM `ags_options` WHERE `option_name` = _transient_timeout_wc_facebook_aam_settings (and on another line [_transient_wc_facebook_aam_settings]) coming from require (wp-blog-header.php), require_once('wp-config.php'), .. wp-settings .., do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Facebookcommerce->get_integration, WC_Facebookcommerce_Integration->load_aam_settings_of_pixel, get_transient, delete_option

Source: Ask PHP